﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenThesis.DTO.FX;

namespace OpenThesis.Extensions.FX
{
	public interface ITradesRepository
	{
		/// <summary>
		/// Return the trades that have a transaction time <= than the given atTime
		/// and a settlementDate >= than the given atTime.Date
		/// </summary>
		/// <param name="account">The account that the trades were executed from</param>
		/// <param name="atTime">The point in time that the requested trades where considered "active"</param>
		/// <returns>A list of trades that where "active" at the given datetime (their contracts have not been settled)</returns>
		IList<Trade> GetActiveTrades(Account account, DateTime atTime);
	}
}
